package string;

public class StringAppendDemo {
    public static void main(String[] args) {
        String str = "字符串拼接";

        StringBuilder sb = new StringBuilder(str);
        for (int i = 0; i < 10000000; i++) {
            //str += "a";
            sb.append("a");
        }
        System.out.println("执行完毕");
    }
}
